package com.luban.importdemo;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Author: lijunwei
 * @Time: 2021/5/10 15:51
 */
public class MyImportSelector implements ImportSelector {
	@Override
	public String[] selectImports(AnnotationMetadata importingClassMetadata) {
		//返回需要实例化的对象的名称
		return new String[]{"com.luban.importdemo.UserImportSelecter"};
	}
}
